/*
    该文件专门用于暴露一个 store 对象，整个对象只有一个 store 对象
*/

//引入createStore，专门用于创建 redux 中最为核心的store对象
import { createStore, applyMiddleware } from "redux";
//引入redux-thunk ,支持异步 action
import thunk from "redux-thunk";
//引入为 Count 服务的 reducer
import countReducer from "./count_reducer";

//暴露store
export default createStore(countReducer, applyMiddleware(thunk));
